/*
 ============================================================================
 Name		: FbLeftTabgroup.h
 Author	  : ceze
 Version	 : 1.0
 Copyright   : FlashBox for ver.Zhongyou(���ʰ�)
 Description : CFbLeftTabgroup 左侧Tabgroup
 ============================================================================
 */

#ifndef FBLEFTTABGROUP_H
#define FBLEFTTABGROUP_H

// INCLUDES
#include "FbTabgroup.h"

// CLASS DECLARATION

/**
 *  CFbLeftTabgroup
 * 
 */
class CFbTabgroupLeft : public CFbTabgroup
{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CFbTabgroupLeft ();

	/**
	 * Two-phased constructor.
	 */
	static CFbTabgroupLeft* NewL (const TRect& aRect, CCoeControl *pParent );

	/**
	 * Two-phased constructor.
	 */
	static CFbTabgroupLeft* NewLC (const TRect& aRect, CCoeControl *pParent );

	/*
	 * From CoeControl,
	 * 按键事件接收处理
	 */
	TKeyResponse OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType );

	/**
	 * 通过序号激活tab项
	 * Hightlight (activate) a tab.
	 */
	void SetActiveTabByIndexL (TInt aTabIndex );
	
	/**
	 * Add TabItem
	 */
	void AddTabL(const TInt& aTabId, const TDesC& aResFileName, const TInt& aResImageId, 
				const TInt& aResImageMaskId, const TInt& aResBackId, const TInt & aResTextId = 0);

	/**
	 * 
	 */
	void NextTabL();
	
	
	 
private:
	
	/**
	 * Constructor for performing 1st stage construction
	 */
	CFbTabgroupLeft ();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL (const TRect& aRect, CCoeControl *pParent );
	/**
	 * From CoeControl,CountComponentControls.
	 */
	//TInt CountComponentControls () const;

	/**
	 * From CCoeControl,ComponentControl.
	 */
	//CCoeControl* ComponentControl (TInt aIndex ) const;

	/**
	 * From CCoeControl, Draw
	 * Draw this CFbTabgroup to the screen.
	 * @param aRect the rectangle of this view that needs updating
	 */
	void Draw (const TRect& aRect ) const;

	
private:
	CFbsBitmap* m_pBack;
};

#endif // FBLEFTTABGROUP_H
